home *** CD-ROM | disk | FTP | other *** search
- SQ2AREAS: a SQUISH.CFG to AREAS.BBS converter
- Copyright (c) 1993, 1994 Jay S. Kendall
- All rights reserved.
-
-
- DISCLAIMER
- ----------
- This software is provided without any guarantee or warranty either
- expressed or implied. I will not be held responsible for ANY damages that
- may result from the use of this program.
-
- SQ2AREAS software and documentation copyright (C) 1993, 1994 by Jay
- Kendall. All rights reserved.
-
-
- LICENSE
- -------
- This program is being released as FREEWARE. The source code will remain
- the property of the author unless otherwise released by him.
-
- You are free to use this version of the program without any cost of
- registration.
-
- You may not alter, modify, or reverse engineer SQ2AREAS for any reason,
- including but not limited to decompiling-compiling, patching, or
- disassembling.
-
- You may freely distribute and copy this program for others subject to the
- above restrictions and the following:
-
- - SQ2AREAS is copied in unmodified form including this file.
- - There is no charge for copying except for the cost of disks.
- - SQ2AREAS is not included in another software package without the
- express written permission of Jay Kendall.
-
-
- WHAT IT DOES
- ------------
- SQ2AREAS will read a Squish.cfg file, extract "Origin" and "EchoArea"
- information, and create an AREAS.BBS file in the current directory.
-
- Squish.cfg control flags are translated as follows:
-
- -0 The indication for a pass-through area is
- translated into the AREAS.BBS-style leading "#."
-
- -$,-$d,-$m,-$s In normal operation, the presence of any of these
- flags will cause a "$" to be placed as the first
- character in AREAS.BBS line for non-passthru
- areas, or as the second character in passthru
- areas. This may be overridden by use of the -NO$
- parameter (see below).
-
- -p The address following "-p" will not be added to
- the downlink information in AREAS.BBS. However, if
- the first downlink listed does not contain all
- portions of <zone>:<node>/<net>, the missing
- information will be extracted from the address
- following "-p." In other words,
- -p1:234/567 14 2:345/67
- will be rendered as
- 1:234/14 2:345/67
- in AREAS.BBS.
-
- -f,-s,-x,-+,-u,-h These flags have no counterpart in AREAS.BBS; they
- are ignored by SQ2AREAS.
-
-
- SYNTAX
- ------
- The command syntax for SQ2AREAS is
- SQ2AREAS <Squish config file> "Sysop Name" [-NO$]
-
- <Squish config file> should be replaced with the name of the source
- Squish.cfg file. It can be as short as filename.ext, or it can include
- drive letter and path if desired.
-
- "Sysop Name" should be replaced with your name as you want it to appear in
- the destination AREAS.BBS. It MUST be enclosed within quotation marks.
-
- -NO$ is an optional parameter; see the section on the "pure" AREAS.BBS
- option, below.
-
-
- PROGRAM LIMITATIONS
- -------------------
- SQ2AREAS scans the Squish config file for the "Origin" keyword before
- performing any other operations. While it doesn't affect normal Squish
- operations if the "Origin" keyword follows an "EchoArea" keyword, SQ2AREAS
- considers it an error.
-
- "Attractive" formatting of the new AREAS.BBS can only be done if:
- - pathnames in Squish.cfg are 22 characters or less, and
- - echotags are 18 characters or less.
- SQ2AREAS will perform properly even if neither of these conditions are met,
- but columns in AREAS.BBS will not be neatly aligned.
-
- The new AREAS.BBS file will be created in the current directory, and will
- overwrite any already-existing AREAS.BBS.
-
-
- THE "PURE" AREAS.BBS OPTION: -NO$
- ----------------------------------
- SQ2AREAS default behavior is to add a '$' to the pathname in AREAS.BBS if
- it encounters a Squish-specific flag (-$, -$d, -$m, or -$s) in an EchoArea
- statement.
-
- The original specifications for AREAS.BBS don't allow for the presence of
- the Squish $ flag. In the event you have software which won't function
- properly if your pathnames contain a '$', you can call SQ2AREAS with the -
- NO$ parameter, which will suppress Squish-specific "$" flags.
-
-
- ERRORLEVELS
- -----------
- SQ2AREAS returns an errorlevel of 0 after successful operation. In the
- event of difficulties, one of the following errorlevels will be returned.
-
- 1 Error opening Squish config file for input
- 2 Error creating AREAS.BBS for output
- 3 EchoArea keyword encountered in Squish config file before Origin
- keyword
- 255 Improper arguments on command line
-
-
- FINAL NOTES
- -----------
- Contacting me:
-
- BBS HAL 9000
- (203) 934-8432
-
- Fidonet 1:141/338
-
- Internet Jay.Kendall@f338.n141.z1.fidonet.org
-
- US Mail Jay Kendall
- 70 Turnpike Square
- Suite 160
- Milford, CT 06460
-
- Thanks to Jeffrey Lizotte for encouraging me to proceed with this project,
- and for beta-testing above and beyond the call of duty. Thanks to Don
- Dawson for his comments regarding handling of the "-p" flag, and for
- further beta-testing.
-
- SQ2AREAS was compiled with Borland's Turbo C++ for DOS.
-
- "Squish" is a trademark of Scott J. Dudley.